package com.earthchen;

import com.earthchen.config.MySqlSession;
import com.earthchen.domain.User;
import com.earthchen.mapper.UserMapper;

/**
 * @author earthchen
 * @date 2018/8/12
 **/
public class TestMybatis {

    public static void main(String[] args) {
        MySqlSession sqlSession = new MySqlSession();
        UserMapper mapper = sqlSession.getMapper(UserMapper.class);
        User user = mapper.getUserById("1");
        System.out.println(user);
    }
}
